package org.harsh.transmission.common.codec;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;
import lombok.extern.slf4j.Slf4j;
import org.harsh.transmission.common.ITransable;
import org.harsh.transmission.domain.TransMsg;
import org.harsh.transmission.service.ITransMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class TransMsgCodec extends MessageToMessageCodec<ITransable, TransMsg> {
    @Autowired
    private ITransMsgService transMsgService;

    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, TransMsg transMsg, List<Object> list) throws Exception {

    }

    @Override
    protected void decode(ChannelHandlerContext channelHandlerContext, ITransable iTransable, List<Object> list) throws Exception {

    }
}
